package com.mit.web.util
{
	import com.mit.web.vo.sys.UserVO;

	/**
	 * 工具类：保持当前登录用户的状态
	 * By Yu
	 * */
	public class FlexSession
	{
		
		private static var _currentUser:UserVO = null;
		public function FlexSession()
		{
		}
		
		/**
		 * 注册当前用户
		 * 
		 * */
		public static function register(usr:UserVO):void{
			_currentUser = usr;
		}
		
		public static function get currentUser():UserVO{
			return _currentUser;
		}
		
		/**
		 * 注销用户资料：通常是在注销或者退出的时候调用
		 * */
		public static function distroy():void{
			_currentUser = null;
		}
	}
}